package com.ll.api.feign;

import com.ll.api.congfig.FeignConfig;
import com.ll.api.fallback.PointFeignFallbackFactory;
import com.ll.common.core.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "micro-point",
            fallbackFactory = PointFeignFallbackFactory.class,
            configuration = FeignConfig.class)
public interface PointFeign {
    @RequestMapping("/point/add")
    R add(@RequestParam("uid") Integer uid, @RequestParam("pointType") Integer pointType);
}
